#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"



void
on_radiobutton2_clicked                (GtkButton       *button,
                                        gpointer         user_data)
{
     if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(user_data))) gtk_file_chooser_set_action(GTK_FILE_CHOOSER (button),GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
}


void
on_radiobutton1_clicked                (GtkButton       *button,
                                        gpointer         user_data)
{
	if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(user_data))) gtk_file_chooser_set_action(GTK_FILE_CHOOSER (button),GTK_FILE_CHOOSER_ACTION_OPEN);
}


void
on_button2_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{
       GtkFileChooser *file_chooser=GTK_FILE_CHOOSER(button);
       gchar *name=gtk_file_chooser_get_filename(file_chooser);
       printf("%s\n",name);
}

